// import Cookies from 'js-cookie'

const TokenKey = 'slwl_token'
const userKey = 'slwl_user'

export function getToken() {
  return localStorage.getItem(TokenKey)
}
export function getUser() {
  return localStorage.getItem(userKey)
}

export function setToken(token) {
  localStorage.setItem(TokenKey, token)
}
export function setUser(user) {
  localStorage.setItem(userKey, user)
}

export function removeToken() {
  localStorage.removeItem(TokenKey)
}
export function removeUser() {
  localStorage.removeItem(userKey)
}
